.class public Les/pa;
.super Ljava/lang/Object;
.source "MediaPickerDateProvider.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/pa$b;,
        Les/pa$a;
    }
.end annotation


# direct methods
.method static synthetic a(Les/qa;Les/qa;)I
    .locals 2

    .line 5
    invoke-virtual {p1}, Les/qa;->a()J

    move-result-wide v0

    invoke-virtual {p0}, Les/qa;->a()J

    move-result-wide p0

    sub-long/2addr v0, p0

    const-wide/16 p0, 0x1

    invoke-static {v0, v1, p0, p1}, Ljava/lang/Math;->min(JJ)J

    move-result-wide p0

    const-wide/16 v0, -0x1

    invoke-static {p0, p1, v0, v1}, Ljava/lang/Math;->max(JJ)J

    move-result-wide p0

    long-to-int p1, p0

    return p1
.end method

.method public static a(Landroidx/fragment/app/FragmentActivity;Les/pa$b;)V
    .locals 5

    const/4 v0, 0x1

    new-array v1, v0, [Ljava/lang/String;

    const/4 v2, 0x0

    const-string v3, "android.permission.WRITE_EXTERNAL_STORAGE"

    aput-object v3, v1, v2

    .line 8
    invoke-static {p0, v1}, Lcom/esfile/screen/recorder/andpermission/b;->b(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    if-nez v1, :cond_0

    .line 9
    invoke-interface {p1, v2}, Les/pa$b;->a(Ljava/util/ArrayList;)V

    return-void

    .line 10
    :cond_0
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string v3, "bundle_type"

    .line 11
    invoke-virtual {v1, v3, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 12
    invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportLoaderManager()Landroidx/loader/app/LoaderManager;

    move-result-object v1

    new-instance v3, Les/pa$a;

    new-instance v4, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/ImageLoader;

    invoke-direct {v4, p0}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/ImageLoader;-><init>(Landroid/content/Context;)V

    invoke-direct {v3, v4, p1}, Les/pa$a;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/data/loader/a;Les/pa$b;)V

    invoke-virtual {v1, v0, v2, v3}, Landroidx/loader/app/LoaderManager;->initLoader(ILandroid/os/Bundle;Landroidx/loader/app/LoaderManager$LoaderCallbacks;)Landroidx/loader/content/Loader;

    return-void
.end method

.method private static a(Ljava/util/ArrayList;Les/pa$b;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;",
            "Les/pa$b;",
            ")V"
        }
    .end annotation

    .line 6
    sget-object v0, Les/na;->a:Les/na;

    invoke-static {p0, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 7
    invoke-interface {p1, p0}, Les/pa$b;->a(Ljava/util/ArrayList;)V

    return-void
.end method

.method static synthetic a([ZLjava/util/ArrayList;[ZLes/pa$b;Ljava/util/ArrayList;)V
    .locals 2

    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 1
    aput-boolean v0, p0, v1

    if-eqz p4, :cond_0

    .line 2
    invoke-virtual {p1, p4}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 3
    :cond_0
    aget-boolean p0, p2, v1

    if-eqz p0, :cond_1

    .line 4
    invoke-static {p1, p3}, Les/pa;->a(Ljava/util/ArrayList;Les/pa$b;)V

    :cond_1
    return-void
.end method

.method public static b(Landroidx/fragment/app/FragmentActivity;Les/pa$b;)V
    .locals 5

    const/4 v0, 0x1

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "android.permission.WRITE_EXTERNAL_STORAGE"

    const/4 v2, 0x0

    aput-object v1, v0, v2

    .line 5
    invoke-static {p0, v0}, Lcom/esfile/screen/recorder/andpermission/b;->b(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    .line 6
    invoke-interface {p1, v1}, Les/pa$b;->a(Ljava/util/ArrayList;)V

    return-void

    .line 7
    :cond_0
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    const-string v3, "bundle_type"

    .line 8
    invoke-virtual {v0, v3, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 9
    invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportLoaderManager()Landroidx/loader/app/LoaderManager;

    move-result-object v0

    new-instance v3, Les/pa$a;

    new-instance v4, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/VideoLoader;

    invoke-direct {v4, p0}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/VideoLoader;-><init>(Landroid/content/Context;)V

    invoke-direct {v3, v4, p1}, Les/pa$a;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/data/loader/a;Les/pa$b;)V

    invoke-virtual {v0, v2, v1, v3}, Landroidx/loader/app/LoaderManager;->initLoader(ILandroid/os/Bundle;Landroidx/loader/app/LoaderManager$LoaderCallbacks;)Landroidx/loader/content/Loader;

    return-void
.end method

.method static synthetic b([ZLjava/util/ArrayList;[ZLes/pa$b;Ljava/util/ArrayList;)V
    .locals 2

    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 1
    aput-boolean v0, p0, v1

    if-eqz p4, :cond_0

    .line 2
    invoke-virtual {p1, p4}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 3
    :cond_0
    aget-boolean p0, p2, v1

    if-eqz p0, :cond_1

    .line 4
    invoke-static {p1, p3}, Les/pa;->a(Ljava/util/ArrayList;Les/pa$b;)V

    :cond_1
    return-void
.end method

.method public static c(Landroidx/fragment/app/FragmentActivity;Les/pa$b;)V
    .locals 10

    const/4 v0, 0x1

    new-array v1, v0, [Ljava/lang/String;

    const-string v2, "android.permission.WRITE_EXTERNAL_STORAGE"

    const/4 v3, 0x0

    aput-object v2, v1, v3

    .line 1
    invoke-static {p0, v1}, Lcom/esfile/screen/recorder/andpermission/b;->b(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_0

    const/4 p0, 0x0

    .line 2
    invoke-interface {p1, p0}, Les/pa$b;->a(Ljava/util/ArrayList;)V

    return-void

    :cond_0
    new-array v1, v0, [Z

    aput-boolean v3, v1, v3

    new-array v2, v0, [Z

    aput-boolean v3, v2, v3

    .line 3
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 4
    new-instance v5, Landroid/os/Bundle;

    invoke-direct {v5}, Landroid/os/Bundle;-><init>()V

    const/4 v6, 0x2

    const-string v7, "bundle_type"

    .line 5
    invoke-virtual {v5, v7, v6}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 6
    invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportLoaderManager()Landroidx/loader/app/LoaderManager;

    move-result-object v6

    new-instance v7, Les/pa$a;

    new-instance v8, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/VideoLoader;

    invoke-direct {v8, p0}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/VideoLoader;-><init>(Landroid/content/Context;)V

    new-instance v9, Les/ma;

    invoke-direct {v9, v1, v4, v2, p1}, Les/ma;-><init>([ZLjava/util/ArrayList;[ZLes/pa$b;)V

    invoke-direct {v7, v8, v9}, Les/pa$a;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/data/loader/a;Les/pa$b;)V

    invoke-virtual {v6, v3, v5, v7}, Landroidx/loader/app/LoaderManager;->initLoader(ILandroid/os/Bundle;Landroidx/loader/app/LoaderManager$LoaderCallbacks;)Landroidx/loader/content/Loader;

    .line 7
    invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportLoaderManager()Landroidx/loader/app/LoaderManager;

    move-result-object v3

    new-instance v6, Les/pa$a;

    new-instance v7, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/ImageLoader;

    invoke-direct {v7, p0}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/ImageLoader;-><init>(Landroid/content/Context;)V

    new-instance p0, Les/oa;

    invoke-direct {p0, v2, v4, v1, p1}, Les/oa;-><init>([ZLjava/util/ArrayList;[ZLes/pa$b;)V

    invoke-direct {v6, v7, p0}, Les/pa$a;-><init>(Lcom/esfile/screen/recorder/picture/newpicker/data/loader/a;Les/pa$b;)V

    invoke-virtual {v3, v0, v5, v6}, Landroidx/loader/app/LoaderManager;->initLoader(ILandroid/os/Bundle;Landroidx/loader/app/LoaderManager$LoaderCallbacks;)Landroidx/loader/content/Loader;

    return-void
.end method
